Component({
  properties: {
    obj: {
      type: Object,
      value: {}
    },

  },
  methods: {
    search() {
      this.setData({
        hide: false
      })
      this.triggerEvent('search')
    },
  }
});
/*
  示例 html
   <c-inputsearch obj='{{kehu}}' bindcheck="searchInput" bind_input="searchInput" bindsearch="searchInput"/>
 示例 js properties
  address: {
      name: '办公地址',
      placeholder: '请点击定位',
      value: '',
      hide: true,
      arr: [],
      checked: {},
    },
  示例 js event
  searchAdd() {
    var that = this;
    var address = this.data.address;
    wx.chooseLocation({
      success(res) {
        address.value = res.address;
        address.checked = res;
        that.setData({
          address
        })
      }
    })
  },
 */